package org.feng.datasource;

import lombok.Data;
import org.springframework.ai.tool.annotation.ToolParam;

/**
 * 数据库连接属性
 *
 * @version v1.0
 * @author: fengjinsong
 * @date: 2022年05月06日 12时58分
 */
@Data
public class DataSourceProperties {

    @ToolParam(description = "数据库驱动名称， 默认为 com.mysql.cj.jdbc.Driver", required = false)
    private String driverClassName = "com.mysql.cj.jdbc.Driver";
    @ToolParam(description = "数据库jdbc连接url，格式为 jdbc:mysql://localhost:3306/test1?useSSL=false&serverTimezone=UTC")
    private String jdbcUrl;
    @ToolParam(description = "数据库用户名")
    private String username;
    @ToolParam(description = "数据库密码")
    private String password;
}

